package com.szyjjk;

import com.szyjjk.imageCrawler.StartUpTheard;
import org.apache.tomcat.jni.Thread;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.szyjjk.mapper")
@EnableAutoConfiguration(exclude = { FreeMarkerAutoConfiguration.class })
@EnableTransactionManagement
public class StartApplication {
    public static void main(String[] args) {
        SpringApplication.run(StartApplication.class, args);
//        System.out.println("是否能访问");
        //硬件下载
       /* StartUpTheard theardCrawler = new StartUpThearxd(0);
        theardCrawler.start();
        try {
            java.lang.Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        StartUpTheard theardHard = new StartUpTheard(1);
        theardHard.start();*/
    }

}
